#include <stdio.h>
#include <math.h>

int main() {
    int target; scanf("%d", &target);
    FILE *filePtr = fopen("rr.dat","w");
    char space = ' ';
    for (int i = 1; i <= target; i++) {
        double curr = sqrt((double)i);
        fprintf(filePtr, "%.6lf", curr);
        if (i != target) { fprintf(filePtr, " "); }
    }
    fclose(filePtr);
    // 写入
    filePtr = fopen("rr.dat", "r");
    double pre = 0, curr;
    for ( ; ; ) {
        fscanf(filePtr, "%lf", &curr);
        if (curr == pre) { break; }
        else {
            if (pre) { printf(" "); }
            pre = curr;
        }
        printf("%.6lf", curr);
    }
    fclose(filePtr);
    // 读取
    return 0;
}